/*
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.schema.domain.thing.creativeWork;

import org.schema.domain.thing.CreativeWork;
import org.schema.domain.thing.creativeWork.MusicPlaylist;
import org.schema.domain.thing.creativeWork.musicPlaylist.MusicAlbum;
import org.schema.domain.thing.intangible.quantity.Duration;
import org.schema.domain.thing.organization.performingGroup.MusicGroup;

/**
 * A music recording (track), usually a single song.
 */
public interface MusicRecording extends CreativeWork {

	/**
	 * The artist that performed this album or recording.
	 *
 	 * @return MusicGroup
	 */
	MusicGroup getByArtist();

	/**
	 * The artist that performed this album or recording.
	 *
 	 * @param musicGroup
	 * @return void
	 */
	void setByArtist(MusicGroup musicGroup);

	/**
	 * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
	 *
 	 * @return Duration
	 */
	Duration getDuration();

	/**
	 * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
	 *
 	 * @param duration
	 * @return void
	 */
	void setDuration(Duration duration);

	/**
	 * The album to which this recording belongs.
	 *
 	 * @return MusicAlbum
	 */
	MusicAlbum getInAlbum();

	/**
	 * The album to which this recording belongs.
	 *
 	 * @param musicAlbum
	 * @return void
	 */
	void setInAlbum(MusicAlbum musicAlbum);

	/**
	 * The playlist to which this recording belongs.
	 *
 	 * @return MusicPlaylist
	 */
	MusicPlaylist getInPlaylist();

	/**
	 * The playlist to which this recording belongs.
	 *
 	 * @param musicPlaylist
	 * @return void
	 */
	void setInPlaylist(MusicPlaylist musicPlaylist);

}